#include <iostream>
#include "proxy.h"

int main(int argv, char**argc)
{
    printf("************  test hello zc!!!   **************\n");
    /* add test code! */
    shared_ptr<AbstractPermission> permission = make_shared<PermissionProxy>();
	
	//普通权限代理 
	permission->modifyUserInfo();
	permission->viewNote();
	permission->publishNote();
	permission->modifyNote();
	
	cout << "----" << endl;
	
	//提升代理权限 
	permission->setLevel(1);
	
	permission->modifyUserInfo();
	permission->viewNote();
	permission->publishNote();
	permission->modifyNote();

    return 0;
}